<!-- 
<ul>
	<li><?php //echo anchor('cliente/adicionar','Adicionar')?></li>
	<li><?php //echo anchor('cliente/listar','Listar')?></li>
	<li><?php //echo anchor('cliente/atualizar','Atualizar')?></li>
	<li><?php //echo anchor('cliente/excluir','Excluir')?></li>
</ul>


<ul>
	<li><?php //echo anchor('produto/listar','Listar Produtos')?></li>
</ul>
 -->

		<!-- Left side column. contains the logo and sidebar -->
            <aside class="left-side sidebar-offcanvas">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                    <!-- Sidebar user panel -->
                    <div class="user-panel">
                        <div class="pull-left image">
                            <img src="<?php echo base_url('bootstrap/img/avatar3.png');?>" class="img-circle" alt="User Image" />
                        </div>
                        <div class="pull-left info">
                            <p>Olá, <?php echo $usuario; ?><!-- {usuario} --></p>

                            <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                        </div>
                    </div>
                    
                    
                    <!-- Campo de pesquisa do menu -->
                    <!-- search form -->
                    <!-- 
                    <form action="#" method="get" class="sidebar-form" style="border: 1px solid red;">
                        <div class="input-group">
                            <input type="text" name="q" class="form-control" placeholder="Search..."/>
                            <span class="input-group-btn">
                                <button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
                            </span>
                        </div>
                    </form>
                     -->
                    <!-- /.search form -->
                    
                    
                    
                    <!-- sidebar menu: : style can be found in sidebar.less -->
                    <ul class="sidebar-menu">
                    	<li>
                    		<a href="<?php echo base_url('produto');?>">
                    			<i class="fa fa-shopping-cart"></i> <span>Produtos</span>
                    		</a>
                    	</li>
                    	<li>
                    		<a href="<?php echo base_url('cliente/listar');?>">
                    			<i class="fa fa-users"></i> <span>Clientes</span>
                    		</a>
                    		<!-- 
                    		<ul class="treeview-menu">
                                <li>
                                	<a href="<?php //echo base_url('cliente/adicionar');?>">
                                	<i class="fa fa-angle-double-right"></i> Adicionar</a>
                                </li>
                                <li>
                                	<a href="<?php //echo base_url('cliente/listar');?>">
                                	<i class="fa fa-angle-double-right"></i> Listar</a>
                                </li>
                            </ul>
                    		 -->
                    	</li>
                    	<?php
//                     	echo "<pre>";
//                     	print_r($this->session->userdata);
//                     	exit;
                    	if ( $this->session->userdata('perfil') == 'Administrador'){
                    	?>
                    	<li>
                    		<a href="<?php echo base_url('usuario/listar');?>">
                    			<i class="fa fa-users"></i> 
                    			<span>Usuários</span>
                    		</a>
                    		<!-- 
                    		<ul class="treeview-menu">
                                <li>
                                	<a href="<?php //echo base_url('usuario/adicionar');?>">
                                	<i class="fa fa-angle-double-right"></i> Adicionar</a>
                                </li>
                                <li>
                                	<a href="<?php //echo base_url('usuario/listar');?>">
                                	<i class="fa fa-angle-double-right"></i> Listar</a>
                                </li>
                            </ul>
                    		 -->
                    	</li>
                    	<?php } ?>
                    	<li>
                    		<a href="<?php echo base_url('pedido/listar');?>">
                    			<i class="fa fa-list"></i> 
                    			<span>Pedidos</span>
                    		</a>
                    		<!-- 
                    		<ul class="treeview-menu">
                                <li>
                                	<a href="<?php echo base_url('pedido');?>">
                                	<i class="fa fa-angle-double-right"></i>Ver Pedidos</a>
                                </li>
                                <li>
                                	<a href="<?php echo base_url('usuario/listar');?>">
                                	<i class="fa fa-angle-double-right"></i> Novo Pedido</a>
                                </li>
                            </ul>
                    		 -->
                    	</li>
                    	<!-- 
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-bar-chart-o"></i>
                                <span>Charts</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="<?php echo base_url('bootstrap/pages/charts/morris.html');?>"><i class="fa fa-angle-double-right"></i> Morris</a></li>
                                <li><a href="<?php echo base_url('bootstrap/pages/charts/flot.html');?>"><i class="fa fa-angle-double-right"></i> Flot</a></li>
                                <li><a href="<?php echo base_url('bootstrap/pages/charts/inline.html');?>"><i class="fa fa-angle-double-right"></i> Inline charts</a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-laptop"></i>
                                <span>UI Elements</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="<?php echo base_url('bootstrap/pages/UI/general.html');?>"><i class="fa fa-angle-double-right"></i> General</a></li>
                                <li><a href="<?php echo base_url('bootstrap/pages/UI/icons.html');?>"><i class="fa fa-angle-double-right"></i> Icons</a></li>
                                <li><a href="<?php echo base_url('bootstrap/pages/UI/buttons.html');?>"><i class="fa fa-angle-double-right"></i> Buttons</a></li>
                                <li><a href="<?php echo base_url('bootstrap/pages/UI/sliders.html');?>"><i class="fa fa-angle-double-right"></i> Sliders</a></li>
                                <li><a href="<?php echo base_url('bootstrap/pages/UI/timeline.html');?>"><i class="fa fa-angle-double-right"></i> Timeline</a></li>
                            </ul>
                        </li>
                        <li class="treeview active">
                            <a href="#">
                                <i class="fa fa-table"></i> <span>Tables</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="<?php echo base_url('bootstrap/pages/tables/simple.html');?>"><i class="fa fa-angle-double-right"></i> Simple tables</a></li>
                                <li class="active"><a href="data.html"><i class="fa fa-angle-double-right"></i> Data tables</a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-folder"></i> <span>Examples</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="<?php echo base_url('bootstrap/pages/examples/invoice.html');?>"><i class="fa fa-angle-double-right"></i> Invoice</a></li>
                                <li><a href="<?php echo base_url('bootstrap/pages/examples/login.html');?>"><i class="fa fa-angle-double-right"></i> Login</a></li>
                                <li><a href="<?php echo base_url('bootstrap/pages/examples/register.html');?>"><i class="fa fa-angle-double-right"></i> Register</a></li>
                                <li><a href="<?php echo base_url('bootstrap/pages/examples/lockscreen.html');?>"><i class="fa fa-angle-double-right"></i> Lockscreen</a></li>
                                <li><a href="<?php echo base_url('bootstrap/pages/examples/404.html');?>"><i class="fa fa-angle-double-right"></i> 404 Error</a></li>
                                <li><a href="<?php echo base_url('bootstrap/pages/examples/500.html');?>"><i class="fa fa-angle-double-right"></i> 500 Error</a></li>
                                <li><a href="<?php echo base_url('bootstrap/pages/examples/blank.html');?>"><i class="fa fa-angle-double-right"></i> Blank Page</a></li>
                            </ul>
                        </li>
                         -->
                    </ul>
                </section>
                <!-- /.sidebar -->
            </aside>
            
            <!-- Right side column. Contains the navbar and content of the page -->
			<aside class="right-side">
